/**
 * <p>计算保险费率</p>
 *
 * @author 张泓麒
 * @version 1.0
 */
public class GetRate {
    public static double getPremiumRate(int points) {
        if (points <= 10 && points >0) {
            return 0.001;
        }else if (points > 10) {
            return  0.006;
        }else {
            throw new PremiumRateException("点数必须大于0");
        }

    }
}
